﻿using ShanNiang.Service.Enumerate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Speech.Synthesis;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Service.Interfaces
{
    public interface ISoundService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="text"></param>
        void Speak(string text);
        Prompt SpeakAsync(string text);
        /// <summary>
        /// 错误声音
        /// </summary>
        /// <param name="codeType"></param>
        void PlayError(CodeType codeType);
        /// <summary>
        /// 消息声音
        /// </summary>
        /// <param name="codeType"></param>
        void PlayInfo(CodeType codeType);
        /// <summary>
        /// 成功声音
        /// </summary>
        /// <param name="codeType"></param>
        void PlaySuccess(CodeType codeType);
        /// <summary>
        /// 警告声音
        /// </summary>
        /// <param name="codeType"></param>
        void PlayWanning(CodeType codeType);
    }
}
